<script>
export default {
	onLaunch: function() {
		console.log('App Launch');
		document.documentElement.addEventListener('touchstart', function (event) {
		          if (event.touches.length > 1) {
		            event.preventDefault();
		          }
		}, false);
		
		        var lastTouchEnd = 0;
		document.documentElement.addEventListener('touchend', function (event) {
		          var now = Date.now();
		          if (now - lastTouchEnd <= 300) {
		            event.preventDefault();
		          }
		          lastTouchEnd = now;
		}, false);
		document.addEventListener('gesturestart', function(event) {
		            event.preventDefault();
		        });
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style>
/* 解决头条小程序组件内引入字体不生效的问题 */
/* #ifdef MP-TOUTIAO */
@font-face {
	font-family: uniicons;
	src: url('/static/uni.ttf');
}
/* #endif */
page {
	background: #eee;
	font-size: 26rpx;
}
</style>
